package com.example.droolstool.module;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Author 赵云龙
 * @Date 2020/6/6
 * @Description TODO
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TaxiFare {

    private BigDecimal nightSurcharge;
    private BigDecimal rideFare;

    public BigDecimal total(){
        return nightSurcharge.add(rideFare);
    }
}
